package com.yidu.controller;

import com.yidu.entity.AmRole;
import com.yidu.service.AmRoleService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 角色表(AmRole)表控制层
 *
 * @author wanghong
 * @since 2021-08-02 11:48:28
 */
@RestController
@RequestMapping("amRole")
public class AmRoleController {
    /**
     * 服务对象
     */
    @Autowired
    private AmRoleService amRoleService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public AmRole selectOne(Integer id) {
        return this.amRoleService.queryById(id);
    }

}
